package com.cjm.one.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.cjm.one.common.result.Result;
import com.cjm.one.goods.client.GoodsBrowseHistoryClient;
import com.cjm.one.model.goods.vo.GoodsSkuBrowseHistoryVo;
import com.cjm.one.model.goods.vo.GoodsSkuVo;
import com.cjm.one.service.GoodsBrowseHistoryService;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;

@Service
public class GoodsBrowseHistoryServiceImpl implements GoodsBrowseHistoryService {
    @Resource
    private GoodsBrowseHistoryClient goodsBrowseHistoryClient;
    @Override
    public Result<Boolean> add(Long skuId) {
        return goodsBrowseHistoryClient.add(skuId);

    }

    @Override
    public Result<Boolean> deleteBatch(Long[] ids) {
        return goodsBrowseHistoryClient.deleteBatch(ids);
      
    }

    @Override
    public Result<Page<GoodsSkuVo>> list(Integer current, Integer size) {
        return goodsBrowseHistoryClient.list(current, size);
    }
}
